﻿#ifndef VIDEO_CAPTURE_H
#define VIDEO_CAPTURE_H

#include "highgui.h"
#include <stdio.h>
#include <string>
#include <iostream>
using namespace std;

class CVideoCapture
{
public:
    CVideoCapture();
    CVideoCapture(const char* filename);
    ~CVideoCapture();
    int cardNo;

    void SetFileName(const char* filename);
    int InitCapture();

    IplImage* CaptureFrame();

private:

    CvCapture* m_pCapture;
    IplImage *m_pFrame;

    string filename;
};

#endif //VIDEO_CAPTURE_H